<% for column in Architecture.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @architecture.send(column.name) %>
</p>
<% end %>


  <tr><b>
  <% for column in Layer.content_columns %>
    <th class="ListTitle"><%= column.human_name %></th>
  <% end %></b>
  </tr>
  
<div id="layers">
  <%= render :partial => 'layers' %>
  <br />
</div>

<% form_remote_tag :url => {:action => 'add_layer', :id => @architecture }, :update => "layers", :position => :bottom  do%>
  <p><label for="add_layer">Add Layer</label> </p>
  <p>Layer Name:
  <%= text_field 'layer', 'name'  %>  </p>
  <p>Description:
  <%= text_field 'layer', 'description'  %></p>  
<%= submit_tag "Add Layer" %>
<% end %>


<%= link_to 'Edit', :action => 'edit', :id => @architecture %> |
<%= link_to 'Back', :action => 'list' %>
